
@mixin box-width($width){
  width: $width;
  margin: 0 auto;
}

//@mixin flex{
//  display: flex;
//  display: -webkit-flex;
//}

//@mixin flex-column {
//  @include flex;
//  flex-direction: column;
//}

//@mixin flex-center ($justify-content:center, $align-items:center){
//  @include flex;
//  justify-content: $justify-content;
//  align-items: $align-items;
//}

//@mixin flex-align{
//  @include flex;
//  align-items: center;
//}

@mixin flex-grid($boxWidth:0,$gap:0){
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax($boxWidth, 1fr));
  grid-gap: $gap;
}
//
//@mixin position-center{
//  position: absolute;
//  top: 50%;
//  left: 50%;
//  transform: translate(-50%, -50%);
//}


@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}

@mixin scrollBar {
  &::-webkit-scrollbar-track-piece {
    background: #d3dce6;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #99a9bf;
    border-radius: 20px;
  }
}

@mixin relative {
  position: relative;
  width: 100%;
  height: 100%;
}

@mixin pct($pct) {
  width: #{$pct};
  position: relative;
  margin: 0 auto;
}

@mixin triangle($width, $height, $color, $direction) {
  $width: $width/2;
  $color-border-style: $height solid $color;
  $transparent-border-style: $width solid transparent;
  height: 0;
  width: 0;

  @if $direction==up {
    border-bottom: $color-border-style;
    border-left: $transparent-border-style;
    border-right: $transparent-border-style;
  }

  @else if $direction==right {
    border-left: $color-border-style;
    border-top: $transparent-border-style;
    border-bottom: $transparent-border-style;
  }

  @else if $direction==down {
    border-top: $color-border-style;
    border-left: $transparent-border-style;
    border-right: $transparent-border-style;
  }

  @else if $direction==left {
    border-right: $color-border-style;
    border-top: $transparent-border-style;
    border-bottom: $transparent-border-style;
  }
}


@mixin flex{
  display: flex;
  display: -webkit-flex;
}

@mixin flex-column{
  @include flex;
  flex-direction: column;
}
@mixin flex-align{
  display: flex;
  display: -webkit-flex;
  align-items: center;
}
@mixin flex-between{
  display: flex;
  display: -webkit-flex;
  justify-content: space-between;
}

@mixin flex-center($justify-content: center, $align-items: center){
  display: flex;
  display: -webkit-flex;
  align-items: $align-items;
  justify-content: $justify-content;
}
@mixin flex-inline-flex {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

@mixin flex-overflow{
  flex:1;
  overflow-y: auto;
}
@mixin position-center{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}


@mixin display-grid($columns) {
  display: grid;
  grid-template-columns:repeat(auto-fit, $columns);
  flex-wrap: wrap;
}
